package com.example.administrator.uiwidgettest;

import android.app.ProgressDialog;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        ProgressDialog dialog = new ProgressDialog(this);
        dialog.setTitle("This is ProgressDialog");
        dialog.setMessage("Loading...");
        dialog.setCancelable(true);
        dialog.show();
    }
}
